package com.lagou.Service.Impl;

import com.lagou.Mapper.DepartmentMapper;
import com.lagou.Service.DepartmentService;
import com.lagou.domain.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> findDepartment() {
        List<Department> department = departmentMapper.findDepartment();
        System.out.println(department);
        return  department;
    }

    @Override
    public void insertDepartment(Department department) {

        departmentMapper.insertDept(department);
    }


}
